package club.sanmubird.springbootrabbitmq.rabbitmq.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;


/**
 * @author Sam
 */
@Slf4j
@Configuration
public class DemoMqConfig extends RabbitMqBaseConfig {

	/**
	 * 队列绑定的交换机名称, 命名规则: 服务(模块).事件
	 */
	public static final String EXCHANGE = "mq.demo";


	/**
	 * 队列名称后缀，命名规则: 服务名称-用途
	 */
	private static final String AGGREGATION_TAG_CLIENT_QUEUE_NAME_SUFFIX = "mq.service-demo";

	/**
	 * 队列全名：交换机名称-队列名称后缀
	 */
	public static final String AGGREGATION_TAG_CLIENT_QUEUE_NAME = EXCHANGE + "-" + AGGREGATION_TAG_CLIENT_QUEUE_NAME_SUFFIX;

	/**
	 * 发送者的routingKey
	 */
	public static final String SEND_ROUTING_KEY = "mq.demo";

	/**
	 * 接受者的routingKey
	 */
	public static final String RECEIVER_ROUTING_KEY = "mq.*";


}
